<template>
    <div>
        <div class="search">
            <div class="inputCover">
                <i></i>
                <input type="search" :placeholder="placeholder" v-model="inputText" ref="myInput">
                <i class="iconfont">&#xe67f;</i>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: ['placeholder'],
    data() {
        return {
            inputText: '',
        }
    },
}
</script>

<style scoped>
.search {
    width: 100%;
    /* padding: 0 2.6667vw; */
    box-sizing: border-box;
    height: 16vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inputCover {
    background-color: #ebecec;
    width: 100%;
    height: 8vw;
    border-radius: 5.3333vw;
    display: flex;
}

.inputCover i {
    width: 5.3333vw;
    box-sizing: border-box;
    font-size: 3.4667vw;
    padding: 0 2.4vw;
    line-height: 8vw;
    color: #c9c9c9;
}
.inputCover i.iconfont{
    width: 8vw;
    margin-right: 4vw;
}

input {
    width: 100%;
    background-color: #ebecec;
    border: none;
    flex: 1;
    outline: none;
    font-size: 4.2667vw;
}


input::placeholder {
    color: #c9c9c9;
}

.inputText {
    color: #6eb7e3;
    font-size: 4vw;
    line-height: 13.3333vw;
    border-bottom: .2667vw solid #ebecec;
    box-sizing: border-box;
    padding-left: 5.3333vw;
}

</style>